package se.vgregion.velocity.hook.regioncalendar.tool;

import se.vgregion.velocity.hook.regioncalendar.model.RegionCalendarFeed;
import se.vgregion.velocity.hook.regioncalendar.util.RegionCalendarUtil;

import java.util.Date;
import java.util.Locale;

public class RegionCalendarToolImpl implements RegionCalendarTool {

    public RegionCalendarToolImpl() {

    }

    @Override
	public String getTest() {
		return "Test RegionCalendarTool";
	}
	
	@Override
	public RegionCalendarFeed parseFeed(String url, int maxEntriesCount) {
		return RegionCalendarUtil.parseFeed(url, maxEntriesCount);
	}
	
	@Override
	public RegionCalendarFeed parseFeedAllEntries(String url) {
		return RegionCalendarUtil.parseFeedAllEntries(url);
	}
	
	@Override
	public int getDateNumber(Date date, Locale locale) {
		return RegionCalendarUtil.getDateNumber(date, locale);
	}

	@Override
	public int getMonthNumber(Date date, Locale locale) {
		return RegionCalendarUtil.getMonthNumber(date, locale);
	}

	@Override
	public String getShortMonthText(Date date, Locale locale) {
		return RegionCalendarUtil.getShortMonthText(date, locale);
	}

}
